/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Com;
import Entidad.*;
import Dao.*;
import java.util.List;
/**
 *
 * @author ANDREZ
 */
public class Rrhhcom {
    
        private static Rrhhcom INSTANCE = new Rrhhcom();
    private Rrhhcom() {
    }
    public static Rrhhcom getInstance(){
    return INSTANCE;
    }
    
    public CredentialBE InicioSesion(String usuario, String password)
    {
        
     return RrhhDao.getInstance().InicioSesion(usuario, password);
    }
    
    public List<BaseBE> listaGenero()
     {
         return RrhhDao.getInstance().listaGenero();
     }
     
      public List<BaseBE> listaTipoTelefono()
      {
          return RrhhDao.getInstance().listaTipoTelefono();
      }
     public List<BaseBE> listaOperador()
     {
         return RrhhDao.getInstance().listaOperador();
     }
     
     public List<BaseBE> listaTipoContrato()
     {
         return RrhhDao.getInstance().listaTipoContrato();
     }
     
     public EmpleadoBE listaEmpleadoPorDNI (String dni)
     {
         return RrhhDao.getInstance().listaEmpleadoPorDNI(dni);        
     }
     
     public boolean Grabar(EmpleadoBE e)
     {
         return RrhhDao.getInstance().Grabar(e);
     }
     
}
